﻿using System.Security.Cryptography;
using System.Text;
using Newtonsoft.Json;
using Microsoft.Extensions.Configuration;
using System.Web;
using System.Reflection.Metadata.Ecma335;

namespace Simple.WebApi.Controllers.System
{
    [ApiController]
    [Route("[Controller]/[action]")]
    public class SSOController : ControllerBase
    {
        private readonly IConfiguration _configuration;
        public SSOController(IConfiguration configuration)
        {
            _configuration = configuration;
        }

        [HttpGet]
        public IActionResult SSO()
        {
            string appKey = _configuration["SSOConfig:AppKey"];
            string url = _configuration["SSOConfig:SSOUrl"];
            string redirectUrl = _configuration["SSOConfig:RedirectUrl"];
            string encodedRd = HttpUtility.UrlEncode(HttpUtility.UrlEncode(url));

            string rd = $"{redirectUrl}?appKey={appKey}&redictURL={encodedRd}";
            Console.WriteLine(rd);
            return Redirect(rd);
        }
        [HttpGet]
        public async Task<IActionResult> Login(string token)
        {
            try
            {
                string salt = ConfigHelper.ConfigDecrypt(_configuration["SSOConfig:Salt"]);
                string sign = HashHelper.Md5(HashHelper.Md5(token + salt).Substring(16, 8));
                string authToken = _configuration["SSOConfig:AuthToken"];

                using (HttpClient client = new HttpClient())
                {
                    Console.WriteLine($"{authToken}?token={token}&sign={sign}");
                    var response = await client.GetAsync($"{authToken}?token={token}&sign={sign}");

                    if (response.IsSuccessStatusCode)
                    {
                        var json = await response.Content.ReadAsStringAsync();
                        Console.WriteLine(json);
                        return Ok(json);
                    }
                    else
                    {
                        // 处理HTTP请求失败的情况
                        return StatusCode((int)response.StatusCode);
                    }
                }
            }
            catch (Exception ex)
            {
                // 处理异常情况
                return StatusCode(500, ex.Message);
            }
        }
        [HttpGet]
        public IActionResult TestLogin(string token)
        {
            if (token == "822d0b5a2bab40f3a71943fec4995dc7")
            {
                var data = "{\"code\":200,\"message\":\"请求成功！\",\"result\":{\"AuthId\":\"d746be4cb73242f7bf4cd4699a602fce\",\"Email\":\"hxx_kt_kxzx@cnpc.com.cn\",\"EmployeeNo\":\"\",\"IdCard\":\"\",\"LoginIP\":\"\",\"LoginTime\":\"\",\"Mobile\":\"18215600886\",\"RealName\":\"黄小祥\",\"Role\":\"AuthorizeUser\",\"Token\":\"080d2fae99e44f70bbc04ee9eddda230\",\"YthToken\":\"dfda8cede4e047e88f5200e4110782d4\",\"UserId\":\"cfe929fd0bd82b83a05ad5cdce0f0d24\",\"UserName\":\"黄小祥\",\"CurrentOrganizationId\":\"cf03cb1bebec46b2b3825f29127884fe\",\"CurrentOrganizationName\":\"信管室\",\"ThirdOrganizationId\":\"1e54cc6ec2b843ea999f3fa5c3bf64ab\",\"ThirdOrganizationName\":\"科技信息化中心\",\"SecondOrganizationId\":\"064a16c49a6c415fa8eb4fb3d248aa41\",\"SecondOrganizationName\":\"安检院\",\"Permissions\":[\"hdv_system_index\",\"hdv_qhse_report\",\r\n    \"hdv_system_index_dashboard\",\r\n    \"hdv_sys_mgr\",\r\n    \"hdv_sys_user_mgr\",\r\n    \"hdv_auth_manager\",\r\n    \"hdv_qhse_totalQuery_violation\",\r\n    \"hdv_qhse_totalQuery_danger\",\r\n    \"hidden_danger_send\",\r\n    \"company_violation_send\",\r\n    \"hdv_sys_menu_mgr\",\r\n    \"hdv_sys_role_mgr\",\r\n    \"hdv_sys_dict_mgr\",\r\n    \"hdv_sys_log_mgr_op_log\",\r\n    \"hdv_sys_log_mgr_ex_log\",\r\n    \"hdv_sys_org_mgr_page\",\r\n    \"hdv_sys_org_mgr_list\",\r\n    \"hdv_sys_org_mgr_add\",\r\n    \"hdv_sys_org_mgr_edit\",\r\n    \"hdv_sys_org_mgr_delete\",\r\n    \"hdv_sys_org_mgr_tree\",\r\n    \"hdv_sys_pos_mgr_page\",\r\n    \"hdv_sys_pos_mgr_list\",\r\n    \"hdv_sys_pos_mgr_add\",\r\n    \"hdv_sys_pos_mgr_edit\",\r\n    \"hdv_sys_pos_mgr_delete\",\r\n    \"hdv_sys_user_mgr_page\",\r\n    \"hdv_sys_user_mgr_list\",\r\n    \"hdv_sys_user_mgr_add\",\r\n    \"hdv_sys_user_mgr_edit\",\r\n    \"hdv_sys_user_mgr_delete\",\r\n    \"hdv_sys_user_mgr_change_status\",\r\n    \"hdv_sys_user_mgr_own_role\",\r\n    \"hdv_sys_user_mgr_grant_role\",\r\n    \"hdv_sys_user_mgr_own_data\",\r\n    \"hdv_sys_user_mgr_grant_data\",\r\n    \"hdv_sys_user_mgr_reset_pwd\",\r\n    \"hdv_sys_app_mgr_set_as_default\",\r\n    \"hdv_sys_app_mgr_page\",\r\n    \"hdv_sys_app_mgr_list\",\r\n    \"hdv_sys_app_mgr_add\",\r\n    \"hdv_sys_app_mgr_edit\",\r\n    \"hdv_sys_app_mgr_delete\",\r\n    \"hdv_sys_menu_mgr_page\",\r\n    \"hdv_sys_menu_mgr_list\",\r\n    \"hdv_sys_menu_mgr_add\",\r\n    \"hdv_sys_menu_mgr_edit\",\r\n    \"hdv_sys_menu_mgr_delete\",\r\n    \"hdv_sys_menu_mgr_tree\",\r\n    \"hdv_sys_menu_mgr_grant_tree\",\r\n    \"hdv_sys_role_mgr_page\",\r\n    \"hdv_sys_role_mgr_list\",\r\n    \"hdv_sys_role_mgr_add\",\r\n    \"hdv_sys_role_mgr_edit\",\r\n    \"hdv_sys_role_mgr_delete\",\r\n    \"hdv_sys_role_mgr_own_menu\",\r\n    \"hdv_sys_role_mgr_grant_menu\",\r\n    \"hdv_sys_role_mgr_own_data\",\r\n    \"hdv_sys_role_mgr_grant_data\",\r\n    \"hdv_sys_dict_mgr_dict_type_page\",\r\n    \"hdv_observeAnalysis\",\r\n    \"hdv_sys_dict_mgr_dict_type_list\",\r\n    \"hdv_sys_dict_mgr_dict_type_add\",\r\n    \"hdv_sys_dict_mgr_dict_type_edit\",\r\n    \"hdv_sys_dict_mgr_dict_type_delete\",\r\n    \"hdv_sys_dict_mgr_dict_page\",\r\n    \"hdv_sys_dict_mgr_dict_list\",\r\n    \"hdv_sys_dict_mgr_dict_add\",\r\n    \"hdv_sys_dict_mgr_dict_edit\",\r\n    \"hdv_sys_dict_mgr_dict_delete\",\r\n    \"hdv_sys_log_mgr_op_log_page\",\r\n    \"hdv_sys_log_mgr_ex_log_page\",\r\n    \"hdv_sys_timers_mgr_page\",\r\n    \"hdv_sys_timers_mgr_list\",\r\n    \"hdv_sys_timers_mgr_add\",\r\n    \"hdv_sys_timers_mgr_edit\",\r\n    \"hdv_sys_timers_mgr_delete\",\r\n    \"hdv_sys_timers_mgr_start\",\r\n    \"hdv_sys_timers_mgr_stop\",\r\n    \"hdv_sys_timers_mgr_get_action_classes\",\r\n    \"hdv_qhse_violation\",\r\n    \"hdv_qhse_violation_page_zsy\",\r\n    \"hdv_873310\",\r\n    \"hdv_qhse_violation_page_1\",\r\n    \"hdv_qhse_violation_insert_gs\",\r\n    \"hdv_hidden_danger\",\r\n    \"hdv_hiddenDanger_insert\",\r\n    \"hdv_danger_c_insert\",\r\n    \"hdv_hiddenDanger_zsy_page\",\r\n    \"hdv_hiddenDanger_gs_page\",\r\n    \"hdv_comprehensive_query\",\r\n    \"hdv_hazard_analysis\",\r\n    \"hdv_violation_query\",\r\n    \"hdv_hazard_query\",\r\n    \"hdv_totalAnalysis\",\r\n    \"hdv_violation_analysis\",\r\n    \"hdv_violationTotalAnalysis\",\r\n    \"hdv_vioEmployeeTypeAnalysis\",\r\n    \"hdv_vioWorkAnalysis\",\r\n    \"hdv_violationCategoryAnalysis\",\r\n    \"hdv_violationTypeAnalysis\",\r\n    \"hdv_violationSpecialtyAnalysis\",\r\n    \"hdv_violationYearAnalysis\",\r\n    \"hdv_ejdw_edit\",\r\n    \"hdv_qhse_violation_insert_ejdw\",\r\n    \"hdv_qhse_violation_insert_ejdwzx\",\r\n    \"hdv_qhse_violation_page_ejdwzx\",\r\n    \"hdv_qhse_violation_insert_jczc\",\r\n    \"hdv_qhse_violation_page_jczc\",\r\n    \"hdv_qhse_violation_insert_jdjc\",\r\n    \"hdv_qhse_violation_page_jdjc\",\r\n    \"hdv_qhse_violation_insert_txsh\",\r\n    \"hdv_qhse_violation_page_txsh\",\r\n    \"hdv_danger_insert_ejdwzx\",\r\n    \"hdv_danger_insert_ejdw\",\r\n    \"hdv_danger_page_ejdw\",\r\n    \"hdv_danger_page_ejdwzx\",\r\n    \"hdv_danger_insert_jczc\",\r\n    \"hdv_danger_page_jczc\",\r\n    \"hdv_danger_insert_jdjc\",\r\n    \"hdv_danger_page_jdjc\",\r\n    \"hdv_danger_insert_txsh\",\r\n    \"hdv_danger_page_txsh\",\r\n    \"hdv_specialtyAnalysis\",\r\n    \"hdv_hazWorkAnalysis\",\r\n    \"hdv_violationClauseAnalysis\",\r\n    \"hdv_categoryAnalysis\",\r\n    \"hdv_dangerTypeAnalysis\",\r\n    \"hdv_pvStandard\",\r\n    \"hdv_manager\",\r\n    \"hdv_technical\",\r\n    \"hdv_safe\",\r\n    \"hdv_check\",\r\n    \"hdv_managermentPAge\",\r\n    \"hdv_eralyWaring\",\r\n    \"hdv_peopleWarning\",\r\n    \"hdv_unitDangerWarning\",\r\n    \"hdv_reformation\",\r\n    \"hdv_qhse_governance\",\r\n    \"hdv_qhse_violation_page_gjdfjc\",\r\n    \"hdv_qhse_violation_gjdfjc\",\r\n    \"hdv_qhse_violation_insert_gjdfjc\",\r\n    \"hdv_qhse_violation_jtgs\",\r\n    \"hdv_qhse_violation_insert_jtgs\",\r\n    \"hdv_qhse_violation_page_jtgs\",\r\n    \"hdv_qhse_violation_gsldjc\",\r\n    \"hdv_qhse_violation_insert_gsldjc\",\r\n    \"hdv_qhse_violation_page_gsldjc\",\r\n    \"hdv_qhse_violation_gstxsh\",\r\n    \"hdv_qhse_violation_insert_gstxsh\",\r\n    \"hdv_qhse_violation_page_gstxsh\",\r\n    \"hdv_qhse_violation_gszxjc\",\r\n    \"hdv_qhse_violation_insert_gszxjc\",\r\n    \"hdv_qhse_violation_page_gszxjc\",\r\n    \"hdv_qhse_violation_ejdwld\",\r\n    \"hdv_qhse_violation_insert_ejdwld\",\r\n    \"hdv_qhse_violation_page_ejdwld\",\r\n    \"hdv_qhse_ repetitive_danger\",\r\n    \"hdv_qhse_violation_ejdwtx\",\r\n    \"hdv_qhse_violation_insert_ejdwtx\",\r\n    \"hdv_qhse_violation_page_ejdwtx\",\r\n    \"hdv_qhse_violation_ejdwzx\",\r\n    \"hdv_qhse_violation_insert_ejdwzxjc\",\r\n    \"hdv_qhse_violation_page_ejdwzxjc\",\r\n    \"hdv_qhse_violation_jcdzyj\",\r\n    \"hdv_danger_page_jcdzrj\",\r\n    \"hdv_danger_insert_jcdzrj\",\r\n    \"hdv_danger_jcdzrj\",\r\n    \"hdv_qhse_violation_jcdzrj\",\r\n    \"hdv_qhse_violation_page_jcdzrj\",\r\n    \"hdv_qhse_violation_insert_jcdzrj\",\r\n    \"hdv_qhse_violation_insert_jcdzyj\",\r\n    \"hdv_qhse_violation_page_jcdzyj\",\r\n    \"hdv_qhse_violation_jcdzzj\",\r\n    \"hdv_qhse_violation_insert_jcdzzj\",\r\n    \"hdv_qhse_violation_page_jcdzzj\",\r\n    \"hdv_qhse_violation_gwygjc\",\r\n    \"hdv_qhse_violation_insert_gwygjc\",\r\n    \"hdv_qhse_violation_page_gwygjc\",\r\n    \"hdv_qhse_violation_jdzj\",\r\n    \"hdv_qhse_violation_insert_jdzj\",\r\n    \"hdv_qhse_violation_page_jdzj\",\r\n    \"hdv_qhse_violation_jdxh\",\r\n    \"hdv_qhse_violation_insert_jdxh\",\r\n    \"hdv_qhse_violation_page_jdxh\",\r\n    \"hdv_qhse_violation_jdpz\",\r\n    \"hdv_qhse_violation_insert_jdpz\",\r\n    \"hdv_qhse_violation_page_jdpz\",\r\n    \"hdv_qhse_ repetitive_vio\",\r\n    \"hdv_qhse_ member_warning\",\r\n    \"hdv_danger_gjdfjc\",\r\n    \"hdv_danger_insert_gjdfjc\",\r\n    \"hdv_danger_page_gjdfjc\",\r\n    \"hdv_danger_jtgs\",\r\n    \"hdv_danger_insert_jtgs\",\r\n    \"hdv_danger_page_jtgs\",\r\n    \"hdv_danger_gsldjc\",\r\n    \"hdv_danger_insert_gsldjc\",\r\n    \"hdv_danger_page_gsldjc\",\r\n    \"hdv_danger_gstxsh\",\r\n    \"hdv_danger_insert_gstxsh\",\r\n    \"hdv_danger_page_gstxsh\",\r\n    \"hdv_danger_gszxjc\",\r\n    \"hdv_danger_insert_gszxjc\",\r\n    \"hdv_danger_page_gszxjc\",\r\n    \"hdv_danger_ejdwld\",\r\n    \"hdv_danger_insert_ejdwld\",\r\n    \"hdv_danger_page_ejdwld\",\r\n    \"hdv_danger_ejdwtx\",\r\n    \"hdv_danger_insert_ejdwtx\",\r\n    \"hdv_danger_page_ejdwtx\",\r\n    \"hdv_danger_ejdwzxjc\",\r\n    \"hdv_danger_insert_ejdwzxjc\",\r\n    \"hdv_danger_page_ejdwzxjc\",\r\n    \"hdv_danger_jcdzyj\",\r\n    \"hdv_danger_insert_jcdzyj\",\r\n    \"hdv_danger_page_jcdzyj\",\r\n    \"hdv_danger_jcdzzj\",\r\n    \"hdv_danger_insert_jcdzzj\",\r\n    \"hdv_danger_page_jcdzzj\",\r\n    \"hdv_danger_gwygjc\",\r\n    \"hdv_danger_insert_gwygjc\",\r\n    \"hdv_danger_page_gwygjc\",\r\n    \"hdv_danger_jdzj\",\r\n    \"hdv_danger_insert_jdzj\",\r\n    \"hdv_danger_page_jdzj\",\r\n    \"hdv_danger_jdxh\",\r\n    \"hdv_danger_insert_jdxh\",\r\n    \"hdv_danger_page_jdxh\",\r\n    \"hdv_danger_jdpz\",\r\n    \"hdv_danger_insert_jdpz\",\r\n    \"hdv_danger_page_jdpz\",\r\n    \"hdv_qhse_v_all_page\",\r\n    \"hdv_qhse_v_all_insert\",\r\n    \"hdv_qhse_v_all_edit\",\r\n    \"hdv_qhse_v_all_delete\",\r\n    \"hdv_qhse_d_all_insert\",\r\n    \"hdv_qhse_d_all_page\",\r\n    \"hdv_qhse_d_all_edit\",\r\n    \"hdv_qhse_d_all_delete\",\r\n    \"hdv_qhse_v_all_list\",\r\n    \"hdv_qhse_v_all_querydetail\",\r\n    \"hdv_qhse_d_all_list\",\r\n    \"hdv_qhse_d_all_querydetail\",\r\n    \"hdv_qhse_unitViolationWarning\",\r\n    \"hdv_qhse_v_compage\",\r\n    \"hdv_qhse_d_compage\",\r\n    \"hdv_qhse_d_zt_analysis\",\r\n    \"hdv_qhse_d_zgqk\",\r\n    \"hdv_qhse_d_zy_analysis\",\r\n    \"hdv_qhse_d_cfxyh\",\r\n    \"hdv_qhse_d_gjzy_analysis\",\r\n    \"hdv_qhse_v_cfxwz\",\r\n    \"hdv_qhse_d_lb_analysis\",\r\n    \"hdv_qhse_earlywarning_ryjf\",\r\n    \"hdv_qhse_d_jb_analysis\",\r\n    \"hdv_qhse_earlywarning_dwyh\",\r\n    \"hdv_qhse_v_zt_analysis\",\r\n    \"hdv_qhse_v_ygxz_analysis\",\r\n    \"hdv_qhse_v_gjzy_analysis\",\r\n    \"hdv_qhse_v_lb_analysis\",\r\n    \"hdv_qhse_v_xz_analysis\",\r\n    \"hdv_qhse_v_zy_analysis\",\r\n    \"hdv_qhse_v_gl_analysis\",\r\n    \"hdv_qhse_standard_list\",\r\n    \"hdv_qhse_standard_insert\",\r\n    \"hdv_qhse_standard_page\",\r\n    \"hdv_qhse_standard_edit\",\r\n    \"hdv_qhse_standard_delete\",\r\n    \"hdv_qhse_data\"]}}";
                return new ContentResult
                {
                    Content = data,
                    ContentType = "application/json",
                    StatusCode = 200 // 设置状态码为200 OK
                };
            }
            else if (token == "38324wresut2652gd3a71943fec4995dc7")
            {
                var data = "{\"code\":200,\"message\":\"请求成功！\",\"result\":{\"AuthId\":\"d746be4cb73242f7bf4cd4699a602fce\",\"Email\":\"hxx_kt_kxzx@cnpc.com.cn\",\"EmployeeNo\":\"\",\"IdCard\":\"\",\"LoginIP\":\"\",\"LoginTime\":\"\",\"Mobile\":\"18215600886\",\"RealName\":\"严树\",\"Role\":\"AuthorizeUser\",\"Token\":\"080d2fae99e44f70bbc04ee9eddda230\",\"YthToken\":\"dfda8cede4e047e88f5200e4110782d4\",\"UserId\":\"d01e0da357f67b0cd64d4706cc688b28\",\"UserName\":\"严树\",\"CurrentOrganizationId\":\"081f5b3d43de4df594def43945bc2e23\",\"CurrentOrganizationName\":\"企管计划部\",\"ThirdOrganizationId\":\"081f5b3d43de4df594def43945bc2e23\",\"ThirdOrganizationName\":\"企管计划部\",\"SecondOrganizationId\":\"c07f546d1a554fda95918c40f9131e2b\",\"SecondOrganizationName\":\"川西钻探公司\",\"Permissions\":[\"hdv_system_index\",\r\n    \"hdv_system_index_dashboard\",\r\n    \"hdv_sys_mgr\",\r\n    \"hdv_sys_user_mgr\",\r\n    \"hdv_auth_manager\",\r\n    \"hdv_sys_menu_mgr\",\r\n    \"hdv_sys_role_mgr\",\r\n    \"hdv_sys_dict_mgr\",\r\n    \"hdv_sys_log_mgr_op_log\",\r\n    \"hdv_sys_log_mgr_ex_log\",\r\n    \"hdv_sys_org_mgr_page\",\r\n    \"hdv_sys_org_mgr_list\",\r\n    \"hdv_sys_org_mgr_add\",\r\n    \"hdv_sys_org_mgr_edit\",\r\n    \"hdv_sys_org_mgr_delete\",\r\n    \"hdv_sys_org_mgr_tree\",\r\n    \"hdv_sys_pos_mgr_page\",\r\n    \"hdv_sys_pos_mgr_list\",\r\n    \"hdv_sys_pos_mgr_add\",\r\n    \"hdv_sys_pos_mgr_edit\",\r\n    \"hdv_sys_pos_mgr_delete\",\r\n    \"hdv_sys_user_mgr_page\",\r\n    \"hdv_sys_user_mgr_list\",\r\n    \"hdv_sys_user_mgr_add\",\r\n    \"hdv_sys_user_mgr_edit\",\r\n    \"hdv_sys_user_mgr_delete\",\r\n    \"hdv_sys_user_mgr_change_status\",\r\n    \"hdv_sys_user_mgr_own_role\",\r\n    \"hdv_sys_user_mgr_grant_role\",\r\n    \"hdv_sys_user_mgr_own_data\",\r\n    \"hdv_sys_user_mgr_grant_data\",\r\n    \"hdv_sys_user_mgr_reset_pwd\",\r\n    \"hdv_sys_app_mgr_set_as_default\",\r\n    \"hdv_sys_app_mgr_page\",\r\n    \"hdv_sys_app_mgr_list\",\r\n    \"hdv_sys_app_mgr_add\",\r\n    \"hdv_sys_app_mgr_edit\",\r\n    \"hdv_sys_app_mgr_delete\",\r\n    \"hdv_sys_menu_mgr_page\",\r\n    \"hdv_sys_menu_mgr_list\",\r\n    \"hdv_sys_menu_mgr_add\",\r\n    \"hdv_sys_menu_mgr_edit\",\r\n    \"hdv_sys_menu_mgr_delete\",\r\n    \"hdv_sys_menu_mgr_tree\",\r\n    \"hdv_sys_menu_mgr_grant_tree\",\r\n    \"hdv_sys_role_mgr_page\",\r\n    \"hdv_sys_role_mgr_list\",\r\n    \"hdv_sys_role_mgr_add\",\r\n    \"hdv_sys_role_mgr_edit\",\r\n    \"hdv_sys_role_mgr_delete\",\r\n    \"hdv_sys_role_mgr_own_menu\",\r\n    \"hdv_sys_role_mgr_grant_menu\",\r\n    \"hdv_sys_role_mgr_own_data\",\r\n    \"hdv_sys_role_mgr_grant_data\",\r\n    \"hdv_sys_dict_mgr_dict_type_page\",\r\n    \"hdv_sys_dict_mgr_dict_type_list\",\r\n    \"hdv_sys_dict_mgr_dict_type_add\",\r\n    \"hdv_sys_dict_mgr_dict_type_edit\",\r\n    \"hdv_sys_dict_mgr_dict_type_delete\",\r\n    \"hdv_sys_dict_mgr_dict_page\",\r\n    \"hdv_sys_dict_mgr_dict_list\",\r\n    \"hdv_sys_dict_mgr_dict_add\",\r\n    \"hdv_sys_dict_mgr_dict_edit\",\r\n    \"hdv_sys_dict_mgr_dict_delete\",\r\n    \"hdv_sys_log_mgr_op_log_page\",\r\n    \"hdv_sys_log_mgr_ex_log_page\",\r\n    \"hdv_sys_timers_mgr_page\",\r\n    \"hdv_sys_timers_mgr_list\",\r\n    \"hdv_sys_timers_mgr_add\",\r\n    \"hdv_sys_timers_mgr_edit\",\r\n    \"hdv_sys_timers_mgr_delete\",\r\n    \"hdv_sys_timers_mgr_start\",\r\n    \"hdv_sys_timers_mgr_stop\",\r\n    \"hdv_sys_timers_mgr_get_action_classes\",\r\n    \"hdv_qhse_violation\",\r\n    \"hdv_qhse_violation_page_zsy\",\r\n    \"hdv_873310\",\r\n    \"hdv_qhse_violation_page_1\",\r\n    \"hdv_qhse_violation_insert_gs\",\r\n    \"hdv_hidden_danger\",\r\n    \"hdv_hiddenDanger_insert\",\r\n    \"hdv_danger_c_insert\",\r\n    \"hdv_hiddenDanger_zsy_page\",\r\n    \"hdv_hiddenDanger_gs_page\",\r\n    \"hdv_comprehensive_query\",\r\n    \"hdv_hazard_analysis\",\r\n    \"hdv_violation_query\",\r\n    \"hdv_hazard_query\",\r\n    \"hdv_totalAnalysis\",\r\n    \"hdv_violation_analysis\",\r\n    \"hdv_violationTotalAnalysis\",\r\n    \"hdv_vioEmployeeTypeAnalysis\",\r\n    \"hdv_vioWorkAnalysis\",\r\n    \"hdv_violationCategoryAnalysis\",\r\n    \"hdv_violationTypeAnalysis\",\r\n    \"hdv_violationSpecialtyAnalysis\",\r\n    \"hdv_violationYearAnalysis\",\r\n    \"hdv_ejdw_edit\",\r\n    \"hdv_qhse_violation_insert_ejdw\",\r\n    \"hdv_qhse_violation_insert_ejdwzx\",\r\n    \"hdv_qhse_violation_page_ejdwzx\",\r\n    \"hdv_qhse_violation_insert_jczc\",\r\n    \"hdv_qhse_violation_page_jczc\",\r\n    \"hdv_qhse_violation_insert_jdjc\",\r\n    \"hdv_qhse_violation_page_jdjc\",\r\n    \"hdv_qhse_violation_insert_txsh\",\r\n    \"hdv_qhse_violation_page_txsh\",\r\n    \"hdv_danger_insert_ejdwzx\",\r\n    \"hdv_danger_insert_ejdw\",\r\n    \"hdv_danger_page_ejdw\",\r\n    \"hdv_danger_page_ejdwzx\",\r\n    \"hdv_danger_insert_jczc\",\r\n    \"hdv_danger_page_jczc\",\r\n    \"hdv_danger_insert_jdjc\",\r\n    \"hdv_danger_page_jdjc\",\r\n    \"hdv_danger_insert_txsh\",\r\n    \"hdv_danger_page_txsh\",\r\n    \"hdv_specialtyAnalysis\",\r\n    \"hdv_hazWorkAnalysis\",\r\n    \"hdv_categoryAnalysis\",\r\n    \"hdv_dangerTypeAnalysis\",\r\n    \"hdv_pvStandard\",\r\n    \"hdv_manager\",\r\n    \"hdv_technical\",\r\n    \"hdv_safe\",\r\n    \"hdv_check\",\r\n    \"hdv_managermentPAge\",\r\n    \"hdv_eralyWaring\",\r\n    \"hdv_peopleWarning\",\r\n    \"hdv_unitDangerWarning\",\r\n    \"hdv_reformation\",\r\n    \"hdv_qhse_governance\",\r\n    \"hdv_qhse_violation_page_gjdfjc\",\r\n    \"hdv_qhse_violation_gjdfjc\",\r\n    \"hdv_qhse_violation_insert_gjdfjc\",\r\n    \"hdv_qhse_violation_jtgs\",\r\n    \"hdv_qhse_violation_insert_jtgs\",\r\n    \"hdv_qhse_violation_page_jtgs\",\r\n    \"hdv_qhse_violation_gsldjc\",\r\n    \"hdv_qhse_violation_insert_gsldjc\",\r\n    \"hdv_qhse_violation_page_gsldjc\",\r\n    \"hdv_qhse_violation_gstxsh\",\r\n    \"hdv_qhse_violation_insert_gstxsh\",\r\n    \"hdv_qhse_violation_page_gstxsh\",\r\n    \"hdv_qhse_violation_gszxjc\",\r\n    \"hdv_qhse_violation_insert_gszxjc\",\r\n    \"hdv_qhse_violation_page_gszxjc\",\r\n    \"hdv_qhse_violation_ejdwld\",\r\n    \"hdv_qhse_violation_insert_ejdwld\",\r\n    \"hdv_qhse_violation_page_ejdwld\",\r\n    \"hdv_qhse_ repetitive_danger\",\r\n    \"hdv_qhse_violation_ejdwtx\",\r\n    \"hdv_qhse_violation_insert_ejdwtx\",\r\n    \"hdv_qhse_violation_page_ejdwtx\",\r\n    \"hdv_qhse_violation_ejdwzx\",\r\n    \"hdv_qhse_violation_insert_ejdwzxjc\",\r\n    \"hdv_qhse_violation_page_ejdwzxjc\",\r\n    \"hdv_qhse_violation_jcdzyj\",\r\n    \"hdv_danger_page_jcdzrj\",\r\n    \"hdv_danger_insert_jcdzrj\",\r\n    \"hdv_danger_jcdzrj\",\r\n    \"hdv_qhse_violation_jcdzrj\",\r\n    \"hdv_qhse_violation_page_jcdzrj\",\r\n    \"hdv_qhse_violation_insert_jcdzrj\",\r\n    \"hdv_qhse_violation_insert_jcdzyj\",\r\n    \"hdv_qhse_violation_page_jcdzyj\",\r\n    \"hdv_qhse_violation_jcdzzj\",\r\n    \"hdv_qhse_violation_insert_jcdzzj\",\r\n    \"hdv_qhse_violation_page_jcdzzj\",\r\n    \"hdv_qhse_violation_gwygjc\",\r\n    \"hdv_qhse_violation_insert_gwygjc\",\r\n    \"hdv_qhse_violation_page_gwygjc\",\r\n    \"hdv_qhse_violation_jdzj\",\r\n    \"hdv_qhse_violation_insert_jdzj\",\r\n    \"hdv_qhse_violation_page_jdzj\",\r\n    \"hdv_qhse_violation_jdxh\",\r\n    \"hdv_qhse_violation_insert_jdxh\",\r\n    \"hdv_qhse_violation_page_jdxh\",\r\n    \"hdv_qhse_violation_jdpz\",\r\n    \"hdv_qhse_violation_insert_jdpz\",\r\n    \"hdv_qhse_violation_page_jdpz\",\r\n    \"hdv_qhse_ repetitive_vio\",\r\n    \"hdv_qhse_ member_warning\",\r\n    \"hdv_danger_gjdfjc\",\r\n    \"hdv_danger_insert_gjdfjc\",\r\n    \"hdv_danger_page_gjdfjc\",\r\n    \"hdv_danger_jtgs\",\r\n    \"hdv_danger_insert_jtgs\",\r\n    \"hdv_danger_page_jtgs\",\r\n    \"hdv_danger_gsldjc\",\r\n    \"hdv_danger_insert_gsldjc\",\r\n    \"hdv_danger_page_gsldjc\",\r\n    \"hdv_danger_gstxsh\",\r\n    \"hdv_danger_insert_gstxsh\",\r\n    \"hdv_danger_page_gstxsh\",\r\n    \"hdv_danger_gszxjc\",\r\n    \"hdv_danger_insert_gszxjc\",\r\n    \"hdv_danger_page_gszxjc\",\r\n    \"hdv_danger_ejdwld\",\r\n    \"hdv_danger_insert_ejdwld\",\r\n    \"hdv_danger_page_ejdwld\",\r\n    \"hdv_danger_ejdwtx\",\r\n    \"hdv_danger_insert_ejdwtx\",\r\n    \"hdv_danger_page_ejdwtx\",\r\n    \"hdv_danger_ejdwzxjc\",\r\n    \"hdv_danger_insert_ejdwzxjc\",\r\n    \"hdv_danger_page_ejdwzxjc\",\r\n    \"hdv_danger_jcdzyj\",\r\n    \"hdv_danger_insert_jcdzyj\",\r\n    \"hdv_danger_page_jcdzyj\",\r\n    \"hdv_danger_jcdzzj\",\r\n    \"hdv_danger_insert_jcdzzj\",\r\n    \"hdv_danger_page_jcdzzj\",\r\n    \"hdv_danger_gwygjc\",\r\n    \"hdv_danger_insert_gwygjc\",\r\n    \"hdv_danger_page_gwygjc\",\r\n    \"hdv_danger_jdzj\",\r\n    \"hdv_danger_insert_jdzj\",\r\n    \"hdv_danger_page_jdzj\",\r\n    \"hdv_danger_jdxh\",\r\n    \"hdv_danger_insert_jdxh\",\r\n    \"hdv_danger_page_jdxh\",\r\n    \"hdv_danger_jdpz\",\r\n    \"hdv_danger_insert_jdpz\",\r\n    \"hdv_danger_page_jdpz\",\r\n    \"hdv_qhse_v_all_page\",\r\n    \"hdv_qhse_v_all_insert\",\r\n    \"hdv_qhse_v_all_edit\",\r\n    \"hdv_qhse_v_all_delete\",\r\n    \"hdv_qhse_d_all_insert\",\r\n    \"hdv_qhse_d_all_page\",\r\n    \"hdv_qhse_d_all_edit\",\r\n    \"hdv_qhse_d_all_delete\",\r\n    \"hdv_qhse_v_all_list\",\r\n    \"hdv_qhse_v_all_querydetail\",\r\n    \"hdv_qhse_d_all_list\",\r\n    \"hdv_qhse_d_all_querydetail\",\r\n    \"hdv_qhse_unitViolationWarning\",\r\n    \"hdv_qhse_v_compage\",\r\n    \"hdv_qhse_d_compage\",\r\n    \"hdv_qhse_d_zt_analysis\",\r\n    \"hdv_qhse_d_zgqk\",\r\n    \"hdv_qhse_d_zy_analysis\",\r\n    \"hdv_qhse_d_cfxyh\",\r\n    \"hdv_qhse_d_gjzy_analysis\",\r\n    \"hdv_qhse_v_cfxwz\",\r\n    \"hdv_qhse_d_lb_analysis\",\r\n    \"hdv_qhse_earlywarning_ryjf\",\r\n    \"hdv_qhse_d_jb_analysis\",\r\n    \"hdv_qhse_earlywarning_dwyh\",\r\n    \"hdv_qhse_v_zt_analysis\",\r\n    \"hdv_qhse_v_ygxz_analysis\",\r\n    \"hdv_qhse_v_gjzy_analysis\",\r\n    \"hdv_qhse_v_lb_analysis\",\r\n    \"hdv_qhse_v_xz_analysis\",\r\n    \"hdv_qhse_v_zy_analysis\",\r\n    \"hdv_qhse_v_gl_analysis\",\r\n    \"hdv_qhse_standard_list\",\r\n    \"hdv_qhse_standard_insert\",\r\n    \"hdv_qhse_standard_page\",\r\n    \"hdv_qhse_standard_edit\",\r\n    \"hdv_qhse_standard_delete\",\r\n    \"hdv_qhse_data\"]}}";
                return new ContentResult
                {
                    Content = data,
                    ContentType = "application/json",
                    StatusCode = 200 // 设置状态码为200 OK
                };
            }
            return null;
        }

    }

}
